// Minimizer Script by LiquidSpark
// version 1.0

// Change "mms" throughout the document to a unique identifier of your choice (default is $)

var mms=jQuery.noConflict();

// Make strings not case-sensitive (credit goes to the following):
// http://api.jquery.com/contains-selector/#comment-29621264

mms.expr[':'].icontains = function(obj, index, meta, stack){
return (obj.textContent || obj.innerText || jQuery(obj).text() || '').toLowerCase().indexOf(meta[3].toLowerCase()) >= 0;
};

//
mms(document).ready(function()
{
   // Announcements
   mms("div.announcement div.inner ul.topiclist li.header dl.icon dt:icontains('Announcements')").click(function()
   {
      mms("div.announcement div.inner ul.topics:eq(0)").slideToggle("slow");
   });
   // Topics
   mms("div.forumbg div.inner ul.topiclist li.header dl.icon dt:icontains('Topics')").click(function()
   {
      mms("div.forumbg div.inner ul.topics:eq(1)").slideToggle("slow");
   });
   // Untitled Forum Lists
   mms("div.forabg div.inner ul.topiclist li.header dl.icon dt:icontains('Forum')").click(function()
   {
      mms("div.forabg div.inner ul.forums:eq(0)").slideToggle("slow");
   });
   // First category on the Board Index
   mms("div.inner ul.topiclist li.header dl dt:icontains('Random Quote')").click(function()
   {
      mms(".forums:eq(0)").slideToggle("slow");
   });
   // Second category on the Board Index
   mms("div.inner ul.topiclist li.header dl.icon dt:icontains('Second Category')").click(function()
   {
      mms(".forums:eq(1)").slideToggle("slow");
   });
   // Third category
   mms("div.inner ul.topiclist li.header dl.icon dt:icontains('Third Category')").click(function()
   {
      mms(".forums:eq(2)").slideToggle("slow");
   });
   // Fourth
   mms("div.inner ul.topiclist li.header dl.icon dt:icontains('Fourth Category')").click(function()
   {
      mms(".forums:eq(3)").slideToggle("slow");
   });
   // Fifth...
   mms("div.inner ul.topiclist li.header dl.icon dt:icontains('Category 5')").click(function()
   {
      mms(".forums:eq(4)").slideToggle("slow");
   });
});